package com.ponhu.ea2.stockcenter.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 库存服务业务配置类
 */
@Data
@Component
@ConfigurationProperties(prefix = "stock.config.biz", ignoreInvalidFields = false)
public class StockProperties {

    /**
     * 是否开启销售库存变动推送MQ数据
     */
    private Boolean enablePushMqData = false;

    /**
     * 是否开启销售库存变动推送MQ缓存屏障
     */
    private Boolean enablePushMqBarrier = false;

    /**
     * 销售库存变动推送MQ缓存屏障作用时长：秒
     */
    private Long mqBarrierTime = 30L;

}
